package jiachunlei.factory.lesson2;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/1 19:27
 */
public class AddOperator extends Operator<Integer>
{
    @Override
    public Integer getResult(Integer... args)
    {
        int result = 0;
        for (Integer arg : args)
        {
            result += arg;
        }
        return result;
    }
}
